package com.more.offer.exercise.arraytest;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author pinoc
 * @date 2022/8/23
 */
public class ArrayListTest {
	public static void main(String[] args) {
		List<String> bookList = new ArrayList<>();
		bookList.add("遥远的救世主");
		bookList.add("背叛");
		bookList.add("天幕红尘");
		bookList.add("人生");
		bookList.add("平凡的世界");

		List<String> luyaoBookList = bookList.subList(3, 5);

		System.out.println(bookList);
		System.out.println(luyaoBookList);
	}
}
